/**
 * @copyright 2017 sinping.com 北京芯平科技股份有限公司. All rights reserved.
 * 本内容仅限于北京芯平科技股份有限公司内部传阅，禁止外泄以及用于其他的商业目的.
 */
package com.sinping.qh.dto.auth;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 行为日志管理DTO
 *
 * @author xuerunjia
 * @create 2017/12/27
 */
public class UserLogDTO implements Serializable {

    private static final long serialVersionUID = 3892059987371645114L;

    /**
     * id
     */
    private String id;
    /**
     * 用户ID
     */
    @JsonProperty(value="user_id")
    private String userId;
    /**
     * 用户名称
     */
    @JsonProperty(value="user_name")
    private String userName;
    /**
     * 登录地址
     */
    @JsonProperty(value = "login_ip")
    private String loginIp;
    /**
     * 操作类型
     */
    @JsonProperty(value = "type")
    private Integer type;
    /**
     * 操作说明
     */
    @JsonProperty(value = "operation")
    private String operation;
    /**
     *备注
     */
    private String mark;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @JsonProperty(value = "create_time")
    private Date createTime;

    @JsonProperty("nickname")
    private String nickname;
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
}
